package com.task.controller.manager;

import java.util.HashMap;

public abstract class AbstractManager<K, V> extends HashMap<K, V> implements Manager<K, V> {

    @Override
    public void register(K k, V v) {
        put(k, v);
    }

    @Override
    public void unregister(K k) {
        remove(k);
    }

    @Override
    public V lookup(K k) {
        return get(k);
    }

    @Override
    public Manager<K, V> lookup() {
        return this;
    }
}
